<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="UTF-8">
  <title>Student Management System </title>

  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>

<body>
<div class="container">
  <h1 th:align="center" th:color="blue"> 图书管理系统 </h1>
  <hr>
  <h2>修改图书信息</h2>

    <form action="#" th:action="@{/saveBook}" th:object="${book}" method="POST">

    <input type="hidden" th:field="*{id}" />

    <input type="text" th:field="*{bookName}" class="form-control mb-4 col-4">

    <input type="text" th:field="*{authorName}"  class="form-control mb-4 col-4">

    <input type="text" th:field="*{score}" class="form-control mb-4 col-4">

    <input type="text" th:field="*{price}" class="form-control mb-4 col-4">

    <input type="text" th:field="*{bookType}"  class="form-control mb-4 col-4">


    <button type="submit" class="btn btn-info col-2"> 修改 </button>
  </form>

  <hr>

  <a th:href="@{/}" th:color="red" class="btn btn-primary btn-sm mb-3"> 返回首页 </a>
</div>
</body>

</html>